package cn.dnuihyy406.dnuifood_16110100406.model;

import cn.dnuihyy406.dnuifood_16110100406.bean.CollectBean;
import cn.dnuihyy406.dnuifood_16110100406.iface.CollectIface;
import cn.dnuihyy406.dnuifood_16110100406.listener.OnRetrofitListener;
import cn.dnuihyy406.dnuifood_16110100406.service.CollectService;
import retrofit2.Call;

public class CollectModel extends BaseModel implements CollectIface {
    private CollectService collectService;
    public CollectModel(){
        super();
        collectService=retrofit.create(CollectService.class);
    }
    @Override
    public void getAllUserCollection(String user_id, String flag, OnRetrofitListener listener) {
        Call call=collectService.getAllUserCollection(user_id,flag);
        bindCallBack(call,listener,9);
    }

//    @Override
//    public void userCollectFood(String user_id, String food_id, OnRetrofitListener listener) {
//        Call call=collectService.userCollectFood(user_id,food_id);
//        bindCallBack(call,listener,10);
//    }
//
//    @Override
//    public void userCollectShop(String user_id, String shop_id, OnRetrofitListener listener) {
//        Call call=collectService.userCollectShop(user_id,shop_id);
//        bindCallBack(call,listener,11);
//    }
}
